tests: Fix incorrect mount matrix in test-orientation.c

WARNING **: In mount matrix '0, -1, 0; -1, 0, 0; 0, 0, 0', axis z is all zeroes, which is invalid
This commit is contained in:
Bastien Nocera
2019-09-04 16:02:21 +02:00
committed by hadess
parent e49753003f
commit 0b38704a95

View File

@@ -69,11 +69,11 @@ test_mount_matrix_orientation (void)
OrientationUp expected;
} tests[] = {
/* Onda v975 quirking */
{ { 523, 13, 5 }, 0.019163, "0, -1, 0; -1, 0, 0; 0, 0, 0", ORIENTATION_NORMAL },
{ { 8, 521, -67 }, 0.019163, "0, -1, 0; -1, 0, 0; 0, 0, 0", ORIENTATION_RIGHT_UP },
{ { 523, 13, 5 }, 0.019163, "0, -1, 0; -1, 0, 0; 0, 0, 1", ORIENTATION_NORMAL },
{ { 8, 521, -67 }, 0.019163, "0, -1, 0; -1, 0, 0; 0, 0, 1", ORIENTATION_RIGHT_UP },
/* Winbook TW100 quirking */
{ { 24, 0, -21 }, 0.306457, "0, -1, 0; -1, 0, 0; 0, 0, 0", ORIENTATION_NORMAL },
{ { 15, -25, -14 }, 0.306457, "0, -1, 0; -1, 0, 0; 0, 0, 0", ORIENTATION_LEFT_UP }
{ { 24, 0, -21 }, 0.306457, "0, -1, 0; -1, 0, 0; 0, 0, 1", ORIENTATION_NORMAL },
{ { 15, -25, -14 }, 0.306457, "0, -1, 0; -1, 0, 0; 0, 0, 1", ORIENTATION_LEFT_UP }
};
for (i = 0; i < G_N_ELEMENTS (tests); i++) {