Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions dev/release/verify-release-candidate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -966,14 +966,7 @@ print(version.text)
"-Djavadoc=${javadoc_path}"
done

local test_arguments=()
if [[ "$(uname)" == "Darwin" && "$(uname -m)" == "x86_64" ]]; then
show_info "Skipping testDriverJni: JNI binaries are not available for macOS/x86_64"
test_arguments+=('-Dtest=!VerifyReleaseCandidateTest#testDriverJni')
fi

mvn "${maven_arguments[@]}" test \
"${test_arguments[@]}" \
"-Dadbc.version=${java_version}" \
-f "${SOURCE_DIR}/verify/java/pom.xml"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,17 @@ void testDriverJdbcAdapter() throws Exception {
@Test
void testDriverJni() {
var driver = new JniDriver(allocator);
if (OS.MAC.isCurrentOs() && "x86_64".equalsIgnoreCase(System.getProperty("os.arch"))) {
// JNI binaries are not available for macOS x86_64.
ExceptionInInitializerError exception =
assertThrows(
ExceptionInInitializerError.class, () -> driver.load().driver("nonexistent").open());
assertThat(exception)
.hasRootCauseInstanceOf(RuntimeException.class)
.hasRootCauseMessage("ADBC JNI driver not supported on architecture x86_64");
return;
}

if (OS.WINDOWS.isCurrentOs() && "aarch64".equalsIgnoreCase(System.getProperty("os.arch"))) {
// JNI binaries are not available for Windows ARM64.
ExceptionInInitializerError exception =
Expand Down
Loading