[vm/ffi] Cleanup some legacy multi-tests
Bug: https://github.com/dart-lang/sdk/issues/60212 Change-Id: Icb6272b38b48b5445beaab8be528c4c5698b74fb Cq-Include-Trybots: dart/try:vm-aot-linux-debug-x64-try,vm-aot-mac-release-arm64-try,vm-reload-linux-debug-x64-try,vm-win-debug-x64-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/412240 Commit-Queue: Daco Harkes <dacoharkes@google.com> Reviewed-by: Michael Goderbauer <goderbauer@google.com>
This commit is contained in:
committed by
Commit Queue
parent
c5af227b8c
commit
d1bffecec5
@@ -40,12 +40,12 @@ final bool isUnalignedFloatingPointAccessSupported = switch (Abi.current()) {
|
||||
|
||||
void main() {
|
||||
print("hello");
|
||||
testUnalignedInt16(); //# 01: ok
|
||||
testUnalignedInt32(); //# 02: ok
|
||||
testUnalignedInt64(); //# 03: ok
|
||||
testUnalignedInt16();
|
||||
testUnalignedInt32();
|
||||
testUnalignedInt64();
|
||||
if (isUnalignedFloatingPointAccessSupported) {
|
||||
testUnalignedFloat(); //# 04: ok
|
||||
testUnalignedDouble(); //# 05: ok
|
||||
testUnalignedFloat();
|
||||
testUnalignedDouble();
|
||||
}
|
||||
_freeAll();
|
||||
}
|
||||
|
||||
@@ -60,8 +60,8 @@ void main() async {
|
||||
//
|
||||
// Since they use signal handlers they only run on Linux.
|
||||
if (Platform.isLinux && !const bool.fromEnvironment("dart.vm.product")) {
|
||||
testCallbackWrongThread(); //# 01: ok
|
||||
testCallbackOutsideIsolate(); //# 02: ok
|
||||
await testCallbackWrongIsolate(); //# 03: ok
|
||||
testCallbackWrongThread();
|
||||
testCallbackOutsideIsolate();
|
||||
await testCallbackWrongIsolate();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,12 +81,12 @@ void testOnHighOrLowMemory(Pointer<Uint8> memory, int indexOffset) {
|
||||
testLoadsAndStores(indexOffset, memory.offsetBy(kIgnoreBytesPositive - 5));
|
||||
testLoadsAndStores(indexOffset, memory.offsetBy(kIgnoreBytesNegative - 5));
|
||||
final m2 = Pointer<Uint8>.fromAddress(kIgnoreBytesPositive + memory.address);
|
||||
Expect.equals(memory, m2); //# 01: ok
|
||||
Expect.equals(memory.address, m2.address); //# 01: ok
|
||||
Expect.equals(memory, m2);
|
||||
Expect.equals(memory.address, m2.address);
|
||||
testLoadsAndStores(indexOffset, m2);
|
||||
final m3 = Pointer<Uint8>.fromAddress(kIgnoreBytesNegative + memory.address);
|
||||
Expect.equals(memory, m3); //# 01: ok
|
||||
Expect.equals(memory.address, m3.address); //# 01: ok
|
||||
Expect.equals(memory, m3);
|
||||
Expect.equals(memory.address, m3.address);
|
||||
testLoadsAndStores(indexOffset, m3);
|
||||
}
|
||||
|
||||
@@ -99,8 +99,8 @@ withMMapedAddress(
|
||||
if (result.address == kMapFailed) {
|
||||
throw 'Could not mmap @0x${fixedAddress.address.toRadixString(16)}!';
|
||||
}
|
||||
Expect.equals(fixedAddress, result); //# 01: ok
|
||||
Expect.equals(fixedAddress.address, result.address); //# 01: ok
|
||||
Expect.equals(fixedAddress, result);
|
||||
Expect.equals(fixedAddress.address, result.address);
|
||||
try {
|
||||
fun(result);
|
||||
} finally {
|
||||
|
||||
@@ -53,13 +53,13 @@ testCallbackLeaf() {
|
||||
}
|
||||
|
||||
main() {
|
||||
testLeafCall(); //# 01: ok
|
||||
testLeafCall();
|
||||
// These tests terminate the process after successful completion, so we have
|
||||
// to run them separately.
|
||||
//
|
||||
// Since they use signal handlers they only run on Linux.
|
||||
if (Platform.isLinux && !const bool.fromEnvironment("dart.vm.product")) {
|
||||
testLeafCallApi(); //# 02: ok
|
||||
testCallbackLeaf(); //# 03: ok
|
||||
testLeafCallApi();
|
||||
testCallbackLeaf();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user