File: test-ltversion.c

package info (click to toggle)
libwacom 2.18.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,388 kB
  • sloc: ansic: 7,062; python: 2,527; sh: 65; makefile: 21
file content (22 lines) | stat: -rw-r--r-- 413 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <assert.h>
#include <stdio.h>

int
main(void)
{
	const char *version = LIBWACOM_LT_VERSION;
	int C, R, A;
	int rc;

	rc = sscanf(version, "%d:%d:%d", &C, &R, &A);
	assert(rc == 3);

	/* we don't change the soname anymore, we use symbol maps instead.
	   So these can stay fixed until we properly break the ABI and bump
	   the soname.  */
	assert(C == 9);
	assert(R == 0);
	assert(A == 0);

	return 0;
}