Commit 785f6025 authored by xuhuagen's avatar xuhuagen Committed by Jim Harris
Browse files

test: fix typos in the test directory



Change-Id: I362077d578e6b0e0e2ac5ae38e49488c4b64d417
Signed-off-by: default avatarxuhuagen <huagenx.xu@intel.com>
Reviewed-on: https://review.gerrithub.io/423496


Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarSeth Howell <seth.howell5141@gmail.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 1f813ec3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1000,7 +1000,7 @@ main(int argc, char **argv)
	}

	if (g_io_size > SPDK_BDEV_LARGE_BUF_MAX_SIZE) {
		printf("I/O size of %d is greather than zero copy threshold (%d).\n",
		printf("I/O size of %d is greater than zero copy threshold (%d).\n",
		       g_io_size, SPDK_BDEV_LARGE_BUF_MAX_SIZE);
		printf("Zero copy mechanism will not be used.\n");
		g_zcopy = false;
+1 −1
Original line number Diff line number Diff line
@@ -195,7 +195,7 @@ get_changed_ns_log_page_completion(void *cb_arg, const struct spdk_nvme_cpl *cpl
	}

	if (!found) {
		printf("%s: Error: Cann't find expected NSID %u\n", dev->name, expected_ns_test);
		printf("%s: Error: Can't find expected NSID %u\n", dev->name, expected_ns_test);
		failed = 1;
	}

+1 −1
Original line number Diff line number Diff line
@@ -253,7 +253,7 @@ static void build_io_request_9(struct io_request *req)
{
	/*
	 * Check if mixed PRP complaint and not complaint requests are handled
	 * properly by spliting them into subrequests.
	 * properly by splitting them into subrequests.
	 * Construct buffers with following theme:
	 */
	const size_t req_len[] = {  2048, 4096, 2048,  4096,  2048,  1024 };
+2 −2
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@ test_read_partitions(void)
	memset(a, 'a', sizeof(a));
	gpt->buf = &a[0];

	/* Set num_partition_entries exceeds Max vaule of entries GPT supported */
	/* Set num_partition_entries exceeds Max value of entries GPT supported */
	gpt->sector_size = 512;
	head = (struct spdk_gpt_header *)(gpt->buf + GPT_PRIMARY_PARTITION_TABLE_LBA * gpt->sector_size);
	gpt->header = head;
@@ -162,7 +162,7 @@ test_read_partitions(void)
	re = spdk_gpt_read_partitions(gpt);
	CU_ASSERT(re == -1);

	/* Set num_partition_entries within Max vaule, size_of_partition_entry mismatch */
	/* Set num_partition_entries within Max value, size_of_partition_entry mismatch */
	to_le32(&head->header_crc32, 0x573857BE);
	to_le32(&head->num_partition_entries, 0x40);
	to_le32(&head->size_of_partition_entry, 0x0);
+2 −2
Original line number Diff line number Diff line
@@ -522,7 +522,7 @@ ut_pmem_write_read(void)
	CU_ASSERT_EQUAL(rc, SPDK_BDEV_IO_STATUS_FAILED);

	/*
	 * Write with insuficient IOV buffers length.
	 * Write with insufficient IOV buffers length.
	 */
	rc = bdev_submit_request(bdev, SPDK_BDEV_IO_TYPE_WRITE, 0, g_pool_ok.nblock, &iov[0], 2);
	CU_ASSERT_EQUAL(rc, SPDK_BDEV_IO_STATUS_FAILED);
@@ -588,7 +588,7 @@ ut_pmem_write_read(void)
	CU_ASSERT_EQUAL(rc, SPDK_BDEV_IO_STATUS_FAILED);

	/*
	 * Read with insuficient IOV buffers length.
	 * Read with insufficient IOV buffers length.
	 */
	rc = bdev_submit_request(bdev, SPDK_BDEV_IO_TYPE_READ, 0, g_pool_ok.nblock, &iov[0], 2);
	CU_ASSERT_EQUAL(rc, SPDK_BDEV_IO_STATUS_FAILED);
Loading