test fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-07-07 12:14:07 +02:00
parent 4906bac10f
commit f8a74456cc
4 changed files with 5 additions and 5 deletions

View File

@ -56,7 +56,7 @@ pub const PROXMOX_BACKUP_KERNEL_FN: &str =
/// This is a simply way to get the full path for configuration files.
/// #### Example:
/// ```
/// # #[macro_use] extern crate proxmox_backup;
/// use pbs_buildcfg::configdir;
/// let cert_path = configdir!("/proxy.pfx");
/// ```
#[macro_export]

View File

@ -278,7 +278,7 @@ impl TryFrom<super::DataBlob> for BackupManifest {
#[test]
fn test_manifest_signature() -> Result<(), Error> {
use crate::backup::{KeyDerivationConfig};
use crate::{KeyDerivationConfig};
let pw = b"test";

View File

@ -379,8 +379,8 @@ mod test {
Ok(())
}
const fn make_test_time(mday: i32, hour: i32, min: i32) -> libc::time_t {
(mday*3600*24 + hour*3600 + min*60) as libc::time_t
const fn make_test_time(mday: i32, hour: i32, min: i32) -> i64 {
(mday*3600*24 + hour*3600 + min*60) as i64
}
#[test]

View File

@ -8,8 +8,8 @@ use std::io::Write;
///
/// #### Example:
/// ```
/// #[macro_use] extern crate proxmox_backup;
/// # use anyhow::{bail, format_err, Error};
/// use proxmox_backup::flog;
/// use proxmox_backup::tools::{FileLogger, FileLogOptions};
///
/// # std::fs::remove_file("test.log");