Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
3 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Copyright (c) 2025-2026, PostgreSQL Global Development Group
 
# Test 128-bit integer arithmetic code in int128.h
 
use strict;
use warnings FATAL => 'all';
 
use PostgreSQL::Test::Utils;
use Test::More;
 
# Run the test program with 1M iterations
my $exe = "test_int128";
my $size = 1_000_000;
 
note "testing executable $exe";
 
my ($stdout, $stderr) = run_command([ $exe, $size ]);
 
SKIP:
{
    skip "no native int128 type", 2 if $stdout =~ /skipping tests/;
 
    is($stdout, "", "test_int128: no stdout");
    is($stderr, "", "test_int128: no stderr");
}
 
done_testing();