diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-14 03:41:23 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-14 03:41:23 +0000 |
commit | 4df705db1b1fcbe8209cd6ce8f285dea12a3ccca (patch) | |
tree | 0e49e51f59ae973a55b12dbf777c9005e42534e3 | |
parent | 8f5fb5bd0132b8cdc4871d891f27468b43c61097 (diff) | |
download | ATCD-4df705db1b1fcbe8209cd6ce8f285dea12a3ccca.tar.gz |
(client): added an ACE_ASSERT to check that shm is non-zero.
-rw-r--r-- | tests/MM_Shared_Memory_Test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/MM_Shared_Memory_Test.cpp b/tests/MM_Shared_Memory_Test.cpp index 390565aa322..0d62edcaf16 100644 --- a/tests/MM_Shared_Memory_Test.cpp +++ b/tests/MM_Shared_Memory_Test.cpp @@ -43,6 +43,8 @@ client (void *) ACE_Shared_Memory_MM shm_client (shm_key); char *shm = (char *) shm_client.malloc (); + ACE_ASSERT (shm != 0); + for (char *s = shm; *s != '\0'; s++) { ACE_ASSERT (*t == s[0]); @@ -128,4 +130,3 @@ main (int, ASYS_TCHAR *[]) ACE_END_TEST; return 0; } - |