summaryrefslogtreecommitdiff
path: root/tests/get-byte-order.c
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2018-01-03 08:23:10 +0000
committerAtomic Bot <atomic-devel@projectatomic.io>2018-01-04 12:32:47 +0000
commit994cd66744e559c92644f36028c6c262605ad75a (patch)
treea7203a5994fe761f47fee008a0301c6319feedd8 /tests/get-byte-order.c
parent95f9b392a44974a91bd3bf61e33779cdedda29e7 (diff)
downloadostree-994cd66744e559c92644f36028c6c262605ad75a.tar.gz
tests: Assert that byte-order is swapped on LE but not BE CPUs
Closes: #1392 Signed-off-by: Simon McVittie <smcv@collabora.com> Closes: #1393 Approved by: cgwalters
Diffstat (limited to 'tests/get-byte-order.c')
-rw-r--r--tests/get-byte-order.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/get-byte-order.c b/tests/get-byte-order.c
new file mode 100644
index 00000000..7e7ba31b
--- /dev/null
+++ b/tests/get-byte-order.c
@@ -0,0 +1,12 @@
+/* Helper for OSTree tests: return host byte order */
+
+#include "config.h"
+
+#include <glib.h>
+
+int
+main (void)
+{
+ g_print ("%d\n", G_BYTE_ORDER);
+ return 0;
+}