Consider glibc version when testing
@@ -6,9 +6,16 @@ public class GLibcVersion {
return initException;
}
private final String version;
+ private final int major;
+ private final int minor;
public GLibcVersion() {
version = gnu_get_libc_version();
+ String [] parts = version.split(".");
+ major = parts.length > 0 ? Integer.valueOf(parts[0]) : -1;
+ minor = parts.length > 0 ? Integer.valueOf(parts[1]) : -1;
}
private native static String gnu_get_libc_version();
public String version() { return version; }
+ public int major() { return major; }
+ public int minor() { return minor; }
}
