tests/ipc_*: match IPC_64 flag

* tests/ipc_msg.c (main): Optionally match "IPC_64|" in the third
argument of the ipc call.
* tests/ipc_sem.c (main): Likewise.
* tests/ipc_shm.c (main): Likewise.
diff --git a/tests/ipc_msg.c b/tests/ipc_msg.c
index 1917086..ed2bfd6 100644
--- a/tests/ipc_msg.c
+++ b/tests/ipc_msg.c
@@ -15,12 +15,12 @@
 
 	if (msgctl(id, IPC_STAT, &ds))
 		goto fail;
-	printf("msgctl\\(%d, IPC_STAT, %p\\) += 0\n", id, &ds);
+	printf("msgctl\\(%d, (IPC_64\\|)?IPC_STAT, %p\\) += 0\n", id, &ds);
 
 	int max = msgctl(0, MSG_INFO, &ds);
 	if (max < 0)
 		goto fail;
-	printf("msgctl\\(0, MSG_INFO, %p\\) += %d\n", &ds, max);
+	printf("msgctl\\(0, (IPC_64\\|)?MSG_INFO, %p\\) += %d\n", &ds, max);
 
 	rc = msgctl(id, MSG_STAT, &ds);
 	if (rc != id) {
@@ -30,16 +30,16 @@
 		 */
 		if (-1 != rc || EINVAL != errno)
 			goto fail;
-		printf("msgctl\\(%d, MSG_STAT, %p\\) += -1 EINVAL \\(Invalid argument\\)\n", id, &ds);
+		printf("msgctl\\(%d, (IPC_64\\|)?MSG_STAT, %p\\) += -1 EINVAL \\(Invalid argument\\)\n", id, &ds);
 	} else {
-		printf("msgctl\\(%d, MSG_STAT, %p\\) += %d\n", id, &ds, id);
+		printf("msgctl\\(%d, (IPC_64\\|)?MSG_STAT, %p\\) += %d\n", id, &ds, id);
 	}
 
 	rc = 0;
 done:
 	if (msgctl(id, IPC_RMID, 0) < 0)
 		return 1;
-	printf("msgctl\\(%d, IPC_RMID, 0\\) += 0\n", id);
+	printf("msgctl\\(%d, (IPC_64\\|)?IPC_RMID, 0\\) += 0\n", id);
 	return rc;
 
 fail: